/**
 *  中心点对象，图形所处在画布上的坐标中心点
 * @author JiangXincan
 * @date 2023/01/28 17:38
 * @return
 */
export class Coordinate {

    // 图形横坐标
    private _centerX: number;

    // 图形纵坐标
    private _centerY: number;


    constructor(centerX: number, centerY: number) {
        this._centerX = centerX;
        this._centerY = centerY;
    }

    get centerX(): number {
        return this._centerX;
    }

    set centerX(value: number) {
        this._centerX = value;
    }

    get centerY(): number {
        return this._centerY;
    }

    set centerY(value: number) {
        this._centerY = value;
    }
}